<?php
/**
 * Created by PhpStorm.
 * User: DELL-PC
 * Date: 2018/9/5
 * Time: 14:45
 */

namespace Application\Common\Controller;


class ElementUIController extends BaseController
{
    use ElementUITrait;

    protected $admin = self::AUTH_ADMIN;

    protected function beforeCore()
    {
        parent::beforeCore();

        if ($this->admin)
            $this->enableAdmin($this->admin);

        $this->actors[] = $this->bindActor();
    }

    /**
     * @return ElementUIActor
     */
    protected function bindActor()
    {
        return new ElementUIActor($this);
    }
}